package com.wwp.tbshop.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.wwp.tbshop.R;
import com.wwp.tbshop.util.VersionUtils;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Xiaokun on 2017/6/20.
 */

public class AboutActivity extends BaseActivity {
    @Bind(R.id.tv_about_vs)
    TextView tvAboutVs;
    @Bind(R.id.iv_about_back)
    ImageView ivAboutBack;

    @Override
    public int getLayoutId() {
        return R.layout.activity_about;
    }

    @Override
    protected void init() {
        String name = VersionUtils.getName(this);
        tvAboutVs.setText("当前版本：" + name);
    }

    public void update(View view) {
        Toast.makeText(this, "没有最新版本", Toast.LENGTH_SHORT).show();
    }
    @OnClick(R.id.iv_about_back)
    public void onViewClicked() {
        finish();
    }
}
